<div class="tableToolbar">
    <div class="coll-md-8" id="addInput">
        <div class="coll-md-2">
            <input type="text" class='search' placeholder="用户名/真实姓名" ng-model="ctrlScope.itemsearch.name">
        </div>
        <div class="coll-md-3 scalenone" id="search2">
            <div class="coll-md-5">
                <input type="text" class='search' placeholder="手机号" ng-model="ctrlScope.itemsearch.mobile">
            </div>
            <div class="coll-md-5 triangle">
                <select class="form-control" ng-model="ctrlScope.itemsearch.realnameStatus">
                    <option selected hidden disabled value="">实名状态</option>
                    <option value="1">已认证</option>
                    <option value="0">未认证</option>
                </select>
            </div>
        </div>
        <div class="coll-md-4 scalenone" id="searchdate" datahide>
            <div class="coll-md-5">
                <p class="input-group">
                    <input type="text" class="search" placeholder="开始时间" uib-datepicker-popup="yyyy-MM-dd"
                           ng-model="ctrlScope.itemsearch.beginDatex" is-open="popup1.opened"
                           datepicker-options="dateOptions"/>
                    <span class="input-group-btn">
							            <button type="button" class="small-icon btn btn-default" ng-click="open1()"><i
                                                class="glyphicon glyphicon-calendar"></i></button>
							          </span>
                </p>
            </div>
            <div class="coll-md-5">
                <p class="input-group inline">
                    <input type="text" class="search" placeholder="结束时间" uib-datepicker-popup="yyyy-MM-dd"
                           ng-model="ctrlScope.itemsearch.endDatex" is-open="popup2.opened"
                           datepicker-options="dateOptions"/>
                    <span class="input-group-btn">
							            <button type="button" class="small-icon btn btn-default" ng-click="open2()"><i
                                                class="glyphicon glyphicon-calendar"></i></button>
							          </span>
                </p>
            </div>
        </div>
        <div class="coll-md-1">
            <input type="button" class="small-icon search2-icon" value="搜索" ng-click="search()">
            <input type="button" class="small-icon search2" value="搜索">
            <input type="button" class="small-icon reset-icon" reset-icon value="重置" ng-click="reset()">
            <input type="button" class="small-icon reset" value="重置">

            <div class="dropdown-menu-right">
                <input type="button" class="small-icon more-icon" value="更多" title='更多搜索项' id="more-icon"
                       data-toggle="dropdown"
                       aria-haspopup="true" aria-expanded="false">
                <input type="button" class="small-icon more" value="更多">
                <ul class="dropdown-menu" style='margin-left:80px;' aria-labelledby="dropdownMenu2" more-search>
                    <li><a href="javascript:;">日期搜索</a></li>
                    <li><a href="javascript:;">其他条件搜索</a></li>
                </ul>
            </div>
        </div>
    </div>
    <div class="coll-md-2">
        <input type="button" class="bttn pos-left" ng-click="addOrderModal()" value="新建">
        <button class="small-icon btn btn-default pos-right" ng-click="download()">
            <i class="fa fa-download"></i>
        </button>
    </div>
</div>
<!--<table style="margin-bottom:20px;width: 45%">-->
<!--<tr>-->
<!--<td class="blue">-->
<!--<h6>用户总数</h6>-->
<!--<h4 ng-model="show.userNum">{{show.userNum}}人</h4>-->
<!--</td>-->
<!--<td class="red">-->
<!--<h6>实名用户</h6>-->
<!--<h4 ng-model="show.realNum">{{show.realNum}}人</h4>-->
<!--</td>-->
<!--<td class="blue">-->
<!--<h6>未实名用户</h6>-->
<!--<h4 ng-model="show.unRealNum">{{show.unRealNum}}人</h4>-->
<!--</td>-->
<!--</tr>-->
<!--</table>-->
<table ui-table="orderParams">
    <thead>
    <tr>
        <th>ID</th>
        <th>用户名</th>
        <th>类型</th>
        <th>手机号码</th>
        <th>真实姓名</th>
        <th>身份证号</th>
        <th>企业全称</th>
        <th>注册来源</th>
        <th>添加时间</th>
        <th>操作</th>
        <!--<th>提现限制</th>-->
    </tr>
    </thead>
    <tbody>
    <tr ng-repeat="item in orderParams.$rows">

        <td>{{item.id}}</td>
        <td>{{item.username}}</td>
        <td>{{item.type | userType}}</td>
        <!--<td><a ng-click="changeMobile(item.mobile)">{{item.mobile}}</a></td>-->
        <td>{{item.mobile}}</td>
        <td>
            <span ng-if="item.realnameStatus==1">{{item.realname}}</span>
            <span ng-if="item.realnameStatus==0">未实名</span>
        </td>


        <td>
            <span ng-if="item.realnameStatus==1">{{item.identifyCard}}</span>
            <span ng-if="item.realnameStatus==0">未认证</span>
        </td>
        <td>
            <span ng-if="item.companyStatus==1">{{item.enterpriseFullName}}</span>
            <span ng-if="item.companyStatus==0">未认证</span>
        </td>

        <td>{{item.referer}}</td>
        <td>{{item.addtime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
        <td>
            <!--<a ng-click="modifyModal(item.id,item.type)">查看</a>-->
            <!--<a ng-click="xfInformation(item.id)">先锋信息</a>-->
            <a ng-if="item.type =='2' && item.realnameStatus == '0' || item.companyStatus =='0' && item.type =='3' "
               ng-click="identify(item.id,item.type)">认证</a>
            <!--<a ng-if="item.companyStatus =='1' && item.type =='3'" ng-click="modify(item.id)">修改</a>-->
            <a ng-if="item.type =='3' && item.bankStatus==0" ng-click="card(item.id)">绑卡</a>
            <span ng-if='item.bankStatus==1'>已绑卡</span>
        </td>
        <!-- <td>
             <span ng-if="item.cashLimit==0">未限制</span>
             <span ng-if="item.cashLimit==1">已限制</span>
             <a ng-click="openlimit(item.id,item.cashLimit)">修改</a>
         </td>-->
    </tr>
    </tbody>
</table>

<modal title="限制提现" visible="limitModel" style="margin:250px auto;">
    <form class="form-horizontal" role="form" name="myForm" novalidate>
        <div class="form-body">
            <div class="row">
                <div class="col-md-2">
                    <div class="form-group">
                        <label class="control-label col-md-12">是否限制提现</label>
                    </div>
                </div>
                <div class="col-md-10">
                    <div class="form-group">
                        <div class="col-md-12">
                            <label class="radio-inline">
                                <input type="radio" name="firstVerifyStatus" value="1" ng-model="limit.status"
                                       ng-checked="islimitChecked">
                                是 </label>
                            <label class="radio-inline">
                                <input type="radio" name="firstVerifyStatus" value="0" ng-model="limit.status"
                                       ng-checked="isNotlimitChecked">
                                否 </label>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-md-12 buttonArea">
                <button type="button" class="btn blue" ng-click="limit()">确定</button>
            </div>

        </div>
    </form>
</modal>
<modal title="修改手机号码" visible="changeModal" style="margin:250px auto;">
    <form class="form-horizontal" role="form">
        <div class="form-body">
            <div ng-show="Verification.isNext">
                <div class="row">
                    <div class="col-md-1"></div>
                    <div class="col-md-6">
                        <div class="form-group">

                            <div class="col-md-8">
                                <input type="text" class="form-control" ng-model="list.code" placeholder="请填写验证码">
                            </div>
                            <div class="col-md-4">
                                <input type="button" class="bttn"
                                       value="{{Verification.getCodeTest}} {{Verification.time}}" ng-click="getCode()"
                                       ng-disabled="Verification.isTimeOut"
                                       ng-class="{true:'inputDisabled',false:''}[Verification.isTimeOut]">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="buttonArea col-md-12">
                    <button type="submit" class="btn blue" ng-click="nextPage()">下一步</button>
                </div>
            </div>

            <div ng-show="Verification.isNext2">
                <div class="row">
                    <div class="col-md-1"></div>
                    <div class="col-md-6">
                        <div class="form-group">

                            <div class="col-md-8">
                                <input type="text" class="form-control" ng-model="list.newMobile"
                                       placeholder="请输入新的手机号码">
                            </div>
                            <div class="col-md-4">
                                <input type="button" class="bttn"
                                       value="{{Verification.getCodeTest2}} {{Verification.time2}}"
                                       ng-click="getCode2()" ng-disabled="Verification.isTimeOut2"
                                       ng-class="{true:'inputDisabled',false:''}[Verification.isTimeOut2]">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-1"></div>
                    <div class="col-md-6">
                        <div class="form-group">

                            <div class="col-md-8">
                                <input type="text" class="form-control" ng-model="list.inputRandomCode"
                                       placeholder="请填写验证码">
                            </div>
                            <div class="col-md-4">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="buttonArea col-md-12">
                    <button type="submit" class="btn blue" ng-click="confirmMobile()">确定</button>
                </div>
            </div>

        </div>
    </form>
</modal>
<modal title="新建" visible="addModal">
    <form class="form-horizontal" role="form" name="myForm" ng-submit="addSubmit(myForm.$valid)" novalidate>
        <div class="form-body">
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">手机号码</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add.mobile" minlength="11" maxlength="11"
                                   placeholder="手机号码" name='mobile' required
                                   ng-pattern="/^1[34578]\d{9}$/">
                            <div class="error" ng-show="myForm.mobile.$error.pattern">
                                请输入正确的手机号码
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">密码</label>

                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add.password" placeholder="密码" required>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">类型</label>
                        <div class="col-md-8">
                            <select required ng-model="add.type" class="form-control"
                                    ui-select2="select2Options">
                                <option value="" disabled selected hidden>请选择</option>
                                <option value="2">个人</option>
                                <option value="3">企业</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">所属资方</label>
                        <div class="col-md-8">
                            <select class="form-control" style="height: 34px !important;" name="assetId"  ui-select2="selectOptions" ng-model="add.assetId"  required>
                                <option value="">请选择</option>
                                <option ng-repeat="item in companyList" value="{{item.id}}">{{item.name}}</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>

            <div class="buttonArea col-md-12">
                <button type="submit" class="btn blue" ng-disabled="myForm.$invalid">提交</button>
            </div>

        </div>
    </form>
</modal>
<modal title="认证" visible="identifyModel">
    <form class="form-horizontal" role="form" name="myForm" ng-submit="identifySubmit(myForm.$valid)" novalidate>
        <div class="form-body">
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">真实姓名</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add.realname" placeholder="真实姓名" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">身份证号码</label>

                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add.idCode" minlength="15" maxlength="18"
                                   placeholder="身份证号码" name='idCode' required
                                   ng-pattern="/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/">
                            <div class="error" ng-show="myForm.idCode.$error.pattern">
                                请输入正确的身份证号码
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">银行名称</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add.bankName" placeholder="银行名称" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">银行卡号</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add.cardNo" minlength="16" maxlength="19"
                                   placeholder="银行卡号" name='cardNo' required
                                   ng-pattern="/([\d]{4})([\d]{4})([\d]{4})([\d]{4})([\d]{0,})$/">
                            <div class="error" ng-show="myForm.cardNo.$error.pattern">
                                请输入正确的银行卡号
                            </div>

                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">手机号码</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add.preMobile" minlength="11" maxlength="11"
                                   placeholder="手机号码" name='preMobile' required
                                   ng-pattern="/^1[34578]\d{9}$/">
                            <div class="error" ng-show="myForm.preMobile.$error.pattern">
                                请输入正确的手机号码
                            </div>
                        </div>
                    </div>
                </div>
                <!--<div class="col-md-6">-->
                    <!--<div class="form-group">-->
                        <!--<label class="control-label col-md-4">借款人类型</label>-->
                        <!--<div class="col-md-8">-->
                            <!--<select required ng-model="add.type" class="form-control"-->
                                    <!--ui-select2="select2Options">-->
                                <!--<option value="" disabled selected hidden>请选择</option>-->
                                <!--<option value="2">借款人</option>-->
                                <!--<option value="6">投资借款人</option>-->
                            <!--</select>-->
                        <!--</div>-->
                    <!--</div>-->
                <!--</div>-->

            </div>
            <div class="buttonArea col-md-12">
                <button type="submit" class="btn blue" ng-disabled="myForm.$invalid">提交</button>
            </div>

        </div>
    </form>
</modal>

<modal title="认证" visible="companyModel">
    <form class="form-horizontal" role="form" name="myForm2" ng-submit="companySubmit(myForm2.$valid)" novalidate>
        <div class="form-body">
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">企业全称</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.enterpriseFullName"
                                   required    placeholder="企业全称" >
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">营业执照号</label>

                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.businessLicense" name="businessLicense"  maxlength="18" placeholder="营业执照号"
                                   required   >
                            <span style="color: #ff0000" ng-show="add1.businessLicense.length<15 || add1.businessLicense.length>18">
                                请输入15-18位营业执照号
                            </span>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">法人姓名</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.legalName" maxlength="8" placeholder="法人姓名"
                                   required   >
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">法人身份证</label>

                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.legalNo" minlength="15" maxlength="18"
                                   placeholder="法人身份证" name='legalNo' required
                                   ng-pattern="/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/">
                            <div class="error" ng-show="myForm2.legalNo.$error.pattern">
                                请输入正确的身份证号码
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="buttonArea col-md-12">
                <button type="submit" class="btn blue" ng-disabled="myForm2.$invalid">提交</button>
            </div>

        </div>
    </form>
</modal>

<modal title="修改" visible="compModifyModal">
    <form class="form-horizontal" role="form" name="myForm1" ng-submit="comModifySubmit(myForm1.$valid)" novalidate>
        <div class="form-body">
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">企业全称</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.enterpriseFullName"
                                   placeholder="企业全称" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">营业执照号</label>

                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.businessLicense" placeholder="营业执照号"
                                   required>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">联系手机</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.agentPersonPhone" placeholder="联系手机"
                                   required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">银行名称</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.bankName" placeholder="银行名称"
                                   required>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">

                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">银行卡号</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.cardNo" placeholder="银行卡号" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">开户省</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.province" placeholder="开户省" required>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">

                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">开户市</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.city" placeholder="开户市" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">组织机构代码</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.organCode" placeholder="组织机构代码"
                                   required>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">开户人姓名</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.bankCardName" placeholder="开户人姓名"
                                   required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">银行简称</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.bankCode" placeholder="银行简称"
                                   required>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">公司地址</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.address" placeholder="公司地址" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">法人姓名</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.legalName" placeholder="法人姓名"
                                   required>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">法人身份证</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.legalNo" placeholder="法人身份证"
                                   required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">支行名称</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.subBranch" placeholder="支行名称"
                                   required>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">支行联号</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.issuer" placeholder="支行联号" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">新银行卡</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.newBankCardNo" placeholder="新银行卡">
                        </div>
                    </div>
                </div>
            </div>
            <div class="buttonArea col-md-12">
                <button type="submit" class="btn blue" ng-disabled="myForm1.$invalid">提交</button>
            </div>

        </div>
    </form>
</modal>


<modal title="查看" visible="detailsModal">
    <form class="form-horizontal" role="form">
        <div class="form-body">
            <ul id="myTab1" class="nav nav-tabs">
                <li class="active"><a href="#item21" data-toggle="tab">基本信息</a></li>
                <li><a href="#item22" data-toggle="tab">资金信息</a></li>
                <li><a href="#item23" data-toggle="tab">关联信息</a></li>
                <li ng-if="ctrlScope.type==3"><a href="#item24" data-toggle="tab" ng-click="company()">企业信息</a></li>
            </ul>
            <div id="myTabContent2" class="tab-content" style="margin-top:10px;">
                <div class="tab-pane fade in active" id="item21">
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">手机号：</label>

                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="list.mobile" readonly="readonly">
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">性别：</label>

                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="list.sex" readonly="readonly">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">年龄：</label>

                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="list.age" readonly="readonly">
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">地区：</label>

                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="list.area" readonly="readonly">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">姓名：</label>

                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="list.realName"
                                           readonly="readonly">
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">身份证：</label>

                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="list.identifyCard"
                                           readonly="readonly">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">注册日期：</label>

                                <div class="col-md-8">
                                    <p class="input-group inline">
                                        <input type="text" class="form-control" placeholder="有效时间"
                                               uib-datepicker-popup="yyyy-MM-dd"
                                               ng-model="list.addtime"
                                               datepicker-options="dateOptions" readonly="readonly"/>
                                        <span class="input-group-btn">
							            <button type="button" class="btn btn-default" disabled><i
                                                class="glyphicon glyphicon-calendar"></i></button>
							            </span>
                                    </p>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">首投日期：</label>

                                <div class="col-md-8">
                                    <p class="input-group inline">
                                        <input type="text" class="form-control" placeholder="有效时间"
                                               uib-datepicker-popup="yyyy-MM-dd"
                                               ng-model="list.firstInvestTime"
                                               datepicker-options="dateOptions" readonly="readonly"/>
                                        <span class="input-group-btn">
							            <button type="button" class="btn btn-default" disabled><i
                                                class="glyphicon glyphicon-calendar"></i></button>
							            </span>
                                    </p>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">银行卡号：</label>

                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="accountBank.cardNo"
                                           readonly="readonly">
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">银行名称：</label>

                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="accountBank.bankName"
                                           readonly="readonly">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">lv：</label>

                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="list.vipLevel"
                                           readonly="readonly">
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">积分：</label>

                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="list.integral"
                                           readonly="readonly">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">邮箱：</label>

                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="list.email" readonly="readonly">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">现居地：</label>
                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="list.currentAddress">
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">出生地：</label>
                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="list.birthAddress">
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="col-md-12 buttonArea">
                        <button type="button" class="btn blue" ng-click="saveBasics()">确定</button>
                    </div>
                    <input type="hidden" ng-model="list.userInfoId"/>

                </div>
                <div id="item22" class="tab-pane fade">
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">累投金额：</label>

                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="amount.investAmount"
                                           readonly="readonly">
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">累投次数：</label>

                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="amount.investCount"
                                           readonly="readonly">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">余额：</label>

                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="amount.usable"
                                           readonly="readonly">
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">在投：</label>

                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="amount.inInvestAmount"
                                           readonly="readonly">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">累计收益：</label>

                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="amount.actualInterest"
                                           readonly="readonly">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">充值总额：</label>

                                <div class="col-md-8">
                                    <input type="text" class="form-control" style="width: 200px;float: left"
                                           ng-model="amount.rechargeAmount" readonly="readonly">
                                    <a style="border: none;line-height: 32px;float: right"
                                       ng-click="rechargeAmountModel()">查看记录</a>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">提现总额：</label>

                                <div class="col-md-8">
                                    <input type="text" class="form-control" style="width: 200px;float: left"
                                           ng-model="amount.cashAmount" readonly="readonly">
                                    <a style="border: none;line-height: 32px;float: right"
                                       ng-click="cashAmountModel()">查看记录</a>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">红包查看：</label>

                                <div class="col-md-8">
                                    <a style="border: none;line-height: 32px;" ng-click="couponModel()">点击查看</a>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">加息券查看：</label>

                                <div class="col-md-8">
                                    <a style="border: none;line-height: 32px;" ng-click="ticketModel()">点击查看</a>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">投资查看：</label>

                                <div class="col-md-8">
                                    <a style="border: none;line-height: 32px;"
                                       ng-click="investmentModel()">点击查看</a>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">借款查看：</label>

                                <div class="col-md-8">
                                    <a style="border: none;line-height: 32px;"
                                       ng-click="loadModel()">点击查看</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div id="item23" class="tab-pane fade">
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">邀请人：</label>

                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="relation.username"
                                           readonly="readonly">
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">被邀请人：</label>

                                <div class="col-md-8">
                                    <a style="border: none;line-height: 30px;"
                                       ng-click="seeModel()">点击查看</a>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">来源：</label>

                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="list.referer"
                                           readonly="readonly">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">用户类型：</label>
                                <div class="col-md-8">
                                    <select class="form-control" ng-model="list.type" ui-select2="select2Options">
                                        <option value="1">投资用户</option>
                                        <option value="2">借款人</option>
                                        <option value="3">借款企业</option>
                                    </select>
                                </div>
                            </div>
                        </div>

                        <div class="col-md-6" ng-if="list.type==1">
                            <div class="form-group">
                                <label class="control-label col-md-4">投资用户：</label>
                                <div class="col-md-8">
                                    <select class="form-control" ng-model="list.customerType"
                                            ui-select2="select2Options">
                                        <option value="0">普通用户</option>
                                        <option value="1">业务员</option>
                                        <option value="2">业务员</option>
                                        <option value="3">渠道用户</option>
                                        <option value="4">线下客户</option>
                                        <option value="5">其他客户</option>
                                    </select>
                                </div>
                            </div>
                        </div>

                        <div class="col-md-6" ng-if="list.type==2">
                            <div class="form-group">
                                <label class="control-label col-md-4">借款人</label>
                                <div class="col-md-8">
                                    <select class="form-control" required ui-select2="selectOptions"
                                            ng-model="ctrlScope.item.itemUserId" name="itemUser">
                                        <option value="" disabled selected hidden>请选择</option>
                                        <option ng-repeat="item in username" value="{{item.id}}">{{item.realname}}
                                            {{item.mobile}}
                                        </option>
                                    </select>

                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-2">备注：</label>

                                <div class="col-md-10">
                                    <textarea class="form-control" ng-model="list.remark"></textarea>
                                </div>
                            </div>
                        </div>
                    </div>
                    <input ng-model="relation.id" type="hidden"/>

                    <div class="buttonArea col-md-12">
                        <button type="submit" class="btn blue" ng-click="saveSubmit()">保存</button>
                    </div>

                </div>
                <div id="item24" class="tab-pane fade">
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">企业全称</label>
                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="comp.enterpriseFullName" readonly>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">营业执照号</label>

                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="comp.businessLicense" readonly>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">原代理手机号码</label>
                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="comp.agentPersonPhone" readonly>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">银行名称</label>
                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="comp.bankName" readonly>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">

                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">银行卡号</label>
                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="comp.cardNo" readonly>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">开户省</label>
                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="comp.province" readonly>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">

                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">开户市</label>
                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="comp.city" readonly>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">支行名称</label>
                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="comp.subBranch" readonly>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">开户人姓名</label>
                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="comp.bankCardName" readonly>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">银行简称</label>
                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="comp.bankCode" readonly>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">公司地址</label>
                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="comp.address" readonly>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">法人姓名</label>
                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="comp.legalName" readonly>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label col-md-4">法人身份证</label>
                                <div class="col-md-8">
                                    <input type="text" class="form-control" ng-model="comp.legalNo" readonly>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </form>
</modal>
<modal title="被邀请人列表" visible="seeListModal">
    <table ui-table="beInviteParams">
        <thead>
        <tr>
            <th>ID</th>
            <th>用户名</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="item in beInviteParams.$rows">
            <td>{{item.userId}}</td>
            <td>{{item.username}}</td>
        </tr>
        </tbody>
    </table>
</modal>
<modal title="充值列表" visible="rechargeModel">
    <table ui-table="rechargeParams">
        <thead>
        <tr>
            <th>序号</th>
            <th>流水号</th>
            <th>充值金额</th>
            <th>实际到账金额</th>
            <th>充值费用</th>
            <th>费率</th>
            <th>充值类型</th>
            <th>状态</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="item in rechargeParams.$rows">
            <td>{{item.id}}</td>
            <td>{{item.orderNo}}</td>
            <td>{{item.rechargeAmount}}</td>
            <td>{{item.actualAmount}}</td>
            <td>{{item.feeAmount}}</td>
            <td>{{item.feeRate}}</td>
            <td>{{item.rechargeType |rechargeType}}</td>
            <td>{{item.rechargeStatus | rechargeStatus}}</td>
        </tr>
        </tbody>
    </table>
</modal>
<modal title="提现列表" visible="cashModel">
    <table ui-table="cashParams">
        <thead>
        <tr>
            <th>序号</th>
            <th>流水号</th>
            <th>提现金额</th>
            <th>实际到账金额</th>
            <th>提现费用</th>
            <th>提现类型</th>
            <th>状态</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="item in cashParams.$rows">
            <td>{{item.id}}</td>
            <td>{{item.orderNo}}</td>
            <td>{{item.cashAmount}}</td>
            <td>{{item.actualAmount}}</td>
            <td>{{item.feeAmount}}</td>
            <td>{{item.cashType | withdrawalType}}</td>
            <td>{{item.cashStatus | rechargeStatus}}</td>
        </tr>
        </tbody>
    </table>
</modal>
<modal title="红包列表" visible="couponModal">
    <button class="small-icon btn btn-default pos-right" style='margin-right:8px;' ng-click="recordDownload()">
        <i class="fa fa-download"></i>
    </button>
    <table ui-table="couponParams">
        <thead>
        <tr>
            <th>金额</th>
            <th>来源</th>
            <th>状态</th>
            <th>要求使用的金额</th>
            <th>有效时间</th>
            <th>使用时间</th>
            <th>投资项目</th>
            <th>投资金额</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="item in couponParams.$rows">
            <td>{{item.amount}}</td>
            <td>{{item.way}}</td>
            <td>{{item.status | couponStatus}}</td>
            <td>{{item.requireAmount}}</td>
            <td>{{item.expiredTime | date:'yyyy-MM-dd'}}</td>
            <td>{{item.useTime | date:'yyyy-MM-dd'}}</td>
            <td>{{item.itemName}}</td>
            <td>{{item.investDealAmount}}</td>
        </tr>
        </tbody>
    </table>
</modal>
<modal title="加息券列表" visible="ticketModal">
    <button class="small-icon btn btn-default pos-right" style='margin-right:8px;' ng-click="ticketDownload()">
        <i class="fa fa-download"></i>
    </button>
    <table ui-table="ticketParams">
        <thead>
        <tr>
            <th>名称</th>
            <th>加息利率</th>
            <th>来源</th>
            <th>状态</th>
            <th>有效时间</th>
            <th>使用时间</th>
            <th>投资项目</th>
            <th>投资金额</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="item in ticketParams.$rows">
            <td>{{item.ticketName}}</td>
            <td>{{item.rate}}</td>
            <td>{{item.way}}</td>
            <td>{{item.status | couponStatus}}</td>
            <td>{{item.expiredTime | date:'yyyy-MM-dd'}}</td>
            <td>{{item.useTime | date:'yyyy-MM-dd'}}</td>
            <td>{{item.itemName}}</td>
            <td>{{item.investDealAmount}}</td>
        </tr>
        </tbody>
    </table>
</modal>
<modal title="投资记录列表" visible="investModal">
    <table ui-table="investParams">
        <thead>
        <tr>
            <th>项目名称</th>
            <th>投资类型</th>
            <th>投资状态</th>
            <th>红包使用情况</th>
            <th>加息券使用情况</th>
            <th>投资金额</th>
            <th>成交金额</th>
            <th>应收总额</th>
            <th>应收本金</th>
            <th>应收利息</th>
            <th>添加时间</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="item in investParams.$rows">
            <td>{{item.itemName}}</td>
            <td>{{item.investType | investType}}</td>
            <td>{{item.investStatus}}</td>
            <td>
                <div ng-if="item.couponName!=null">
                    <div>金额：{{item.couponAmount}} 元</div>
                    <div>名称：【{{item.couponName}}】</div>
                    <div>时间：{{item.couponUseTime | date:'yyyy-MM-dd HH:mm:ss'}}</div>
                </div>
                <div ng-if="item.couponName==null">未使用</div>
            </td>
            <td>
                <div ng-if="item.ticketName!=null">
                    <div>加息率：{{item.ticketRate}} %</div>
                    <div>名称：【{{item.ticketName}}】</div>
                    <div>时间：{{item.ticketUseTime | date:'yyyy-MM-dd HH:mm:ss'}}</div>
                </div>
                <div ng-if="item.ticketName==null">未使用</div>
            </td>
            <td>{{item.investAmount}}</td>
            <td>{{item.investDealAmount}}</td>
            <td>{{item.collectAmount}}</td>
            <td>{{item.collectPrincipal}}</td>
            <td>{{item.collectInterest}}</td>
            <td>{{item.addtime | date:'yyyy-MM-dd'}}</td>
        </tr>
        </tbody>
    </table>
</modal>
<modal title="绑卡" visible="tiedCardModel">
    <form class="form-horizontal" role="form" name="tiedCardForm" ng-submit="tiedCardSubmit(tiedCardForm.$valid)" novalidate>
        <div class="form-body">
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">预留手机号</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="tied.preMobile" minlength="11" maxlength="11"
                                   placeholder="预留手机号" name='proMobile' required
                                   ng-pattern="/^1[34578]\d{9}$/">
                            <div class="error" ng-show="tiedCardForm.proMobile.$error.pattern">
                                请输入正确的手机号码
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">组织机构代码</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="tied.orgNo" minlength="9" maxlength="18"
                                   placeholder="组织机构代码" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">账户名称</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="tied.acctName"
                                   placeholder="账户名称" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">帐号</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="tied.acctNo" minlength="16" maxlength="19"
                                   placeholder="帐号" name='acctNo' required
                                   ng-pattern="/([\d]{4})([\d]{4})([\d]{4})([\d]{4})([\d]{0,})$/">
                            <div class="error" ng-show="tiedCardForm.acctNo.$error.pattern">
                                请输入正确的银行卡号
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">开户银行</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="tied.openBranch"
                                   placeholder="开户银行" required>
                        </div>
                    </div>
                </div>

            </div>
            <div class="buttonArea col-md-12">
                <button type="submit" class="btn blue" ng-disabled="tiedCardForm.$invalid">提交</button>
            </div>

        </div>
    </form>
</modal>
